﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using POSSystem.DAL;

namespace POSSystem.BLL
{
    public class View_PrintPurchaseDetails : _View_PrintPurchaseDetails
    {
        public static View_PrintPurchaseDetails GetPurchaseDetailsByPOID(int poID)
        {
            try
            {
                View_PrintPurchaseDetails details = new View_PrintPurchaseDetails();
                details.Where.PurchaseOrderID.Value = poID;
                details.Query.Load();

                return details;
            }
            catch (Exception ex)
            {
                ErrorLog.WriteToFile("View_PrintPurchaseDetails.cs", "GetPurchaseDetailsByPOID", ex.StackTrace);
                throw ex;
            }
        }
    }
}
